Skip to content

Implement Level Completion Stats & Points Claim Logic#217

Merged
A6dulmalik merged 7 commits intoMindBlockLabs:mainfrom
dDevAhmed:feat/level-completion-stats-claim
Jan 31, 2026
Merged

Implement Level Completion Stats & Points Claim Logic#217
A6dulmalik merged 7 commits intoMindBlockLabs:mainfrom
dDevAhmed:feat/level-completion-stats-claim

Conversation

@dDevAhmed
Copy link
Contributor

This PR implements the logic and UI for level completion stats and points claim, as described in #160.

Closes #160

Features

  • Centralized CompletionProvider and useCompletion hook for quiz completion state management.
  • Typed API integration for /user/stats and /puzzles/claim-points.
  • UI integration for quiz completion stats and points claim, with clean separation of logic and UI.
  • Exposes loading, error, and success states for UI feedback.
  • No direct API calls in UI components.

Acceptance Criteria

  • Stats match quiz session results.
  • Claim Points updates backend and refreshes user stats.
  • UI reacts to success/error states.
  • Centralized, typed, and maintainable logic.

…nd\n\n- Centralized CompletionProvider and useCompletion hook\n- API integration for /user/stats and /puzzles/claim-points\n- UI integration for quiz completion stats and claim\n- Error, loading, and success state management\n- Clean separation of logic and UI
Copy link
Member

@phertyameen phertyameen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Checkout CONTRIBUTING.md for test to run locally to ensure smooth cicd checks

…n\n- Resolved conflicts in quiz/page.tsx and package-lock.json\n- Regenerated lockfile and ensured all dependencies are installed\n- Ensured QuizCompletionStats is imported and used correctly
@phertyameen
Copy link
Member

@A6dulmalik can you review this please

@A6dulmalik A6dulmalik merged commit 3fd8198 into MindBlockLabs:main Jan 31, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement Level Completion Stats & Points Claim Logic

3 participants